﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Utils;

namespace Dao
{
    public class DaoBase
    {
        public static IDaoBase GetObject()
        {
            string dbType = SetConfig.GetDbType();
            switch (dbType)
            {
                case "mysql":
                    return new MySqlDaoBase();
                case "oracle":
                    return new OracleDaoBase();
                default:
                    return null;
            }
        }
    }
}
